
import React from 'react'
import {Modal} from 'antd'
import {ExclamationCircleOutlined} from '@ant-design/icons'

const onCancel = ()=>{}
export const confirm= config=>{
	Modal.confirm({
		title: config.title||`提示`,
    icon: <ExclamationCircleOutlined />,
    content: config.content|| `是否确认操作？`,
    okText: config.okText||'确认',
    cancelText: config.cancelText||'取消',
    onOk:config.onOk,
    onCancel:config.onCancel || onCancel
	})
}